<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div {
        width: 200px;
        height: 200px;
        background-color: red;
        text-align: center;
        line-height: 200px;
    }
</style>

<body>
    <div class="div"></div>
    <button class="btn">取消防抖</button>
</body>
<script src="./23.debounce.js"></script>
<script>
    let num = 0
    const div = document.querySelector('.div')
    const btn = document.querySelector('.btn')
    div.innerHTML = num
    function move(e) {
        div.innerHTML = num++
        console.log(e);
    }
    let done = debounce(move, 1000)
    btn.onclick = function () {
        done.cancle()
    }
    div.onmousemove = done
</script>

</html>